package com.xmall.order.define.request.express;

import com.xmall.define.base.BaseUpdateRequest;
import com.xmall.validate.group.AddGroup;
import com.xmall.validate.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 请求数据格式：新增/编辑 order - order_express
 */
@Data
public class OrderExpressUpdateRequest extends BaseUpdateRequest implements Serializable {

    /**
     * 订单ID
     */
    @NotNull(message = "订单ID不能为空", groups = { AddGroup.class, UpdateGroup.class })
    private Long orderId;

    /**
     * 快递公司名称
     */
    @NotBlank(message = "快递公司名称不能为空", groups = { AddGroup.class, UpdateGroup.class })
    private String expressProviderName;

    /**
     * 快递公司编号
     */
    @NotBlank(message = "快递公司编号不能为空", groups = { AddGroup.class, UpdateGroup.class })
    private String expressProviderNo;

    /**
     * 快递公司图标
     */
    @NotBlank(message = "快递公司图标不能为空", groups = { AddGroup.class, UpdateGroup.class })
    private String expressProviderIcon;

    /**
     * 快递单号
     */
    @NotBlank(message = "快递单号不能为空", groups = { AddGroup.class, UpdateGroup.class })
    private String expressNo;
}
